<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>Document</title>
    <style></style>
  </head>
  <body>
    <div>
      <h1>直接量替换-new-Object</h1>
    </div>
    <script>
      //直接字面量
      var a = [1, 2, 3];
      //new Object
      var b = new Array(3);
      b[0] = 1;
      b[1] = 2;
      b[2] = 3;
    </script>
  </body>
</html>
